package com.sdonkey.score.dto.register;

/**
 * 注册表单页面封装
 *
 * @author ZhaoShihao
 * @version 1.0
 */
public class RegisterPageLoginInfo {
    private Integer id;//用户ID

    private String mobile;//用户手机号

    private String password;//用户密码

    private String name;//用户昵称

    private String code;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name != null && name.trim().length() > 0 ? name : "xml" + mobile.substring(4, 11);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }
}
